<?php
header('Content-type:text/html; charset=utf-8');
$db = include 'db.php';
$page  =  isset($_GET['page'])?(int)$_GET['page']:0;
$start = $page*10;
$result =  array_slice($db,$start,10);
$data = array();
if(empty($result)){
	$data['status'] = false;
}else{
	$data['status'] = true;
}
$data['result'] = $result;
echo  json_encode($data);
?>